import { defineStore } from "pinia";

export default defineStore("useUserStore", {
  state() {
    return {
      isFirstVisit: true,
      isCheckAccessPwdPass: false,
      attentionDescription: "",
    };
  },
  actions: {
    setFirstVisit(value) {
      this.isFirstVisit = value;
    },
    setCheckAccessPwdPass(value) {
      this.isCheckAccessPwdPass = value;
    },
    setAttentionDescription(value) {
      this.attentionDescription = value;
    },
  },
  persist: {
    enabled: true,
    strategies: [
      {
        storage: sessionStorage,
      },
    ],
  },
});
